package com.zy.cat.entity.mall.resp;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Description: 限时抢购实体类
 * @author xiake
 * @date 2019-12-13 11:00:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("限时抢购实体类")
public class FlashSaleGoodsResp implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2011233843833846273L;

	/**
	 * 抢购时间
	 */
	@JsonProperty("start_time")
	@ApiModelProperty(value = "抢购时间", example = "2019-12-13 10:00:00")
	private String startTime;

	/**
	 * 抢购商品列表
	 */
	@JsonProperty("list")
	@ApiModelProperty(value = "抢购商品列表", example = "[]")
	private List<FlashSaleGoods> list;

	/**
	 * 抢购状态 0.未开抢、1.正在抢购、2.已抢完
	 */
	@JsonProperty("status")
	@ApiModelProperty(value = "抢购状态(0.未开抢、1.正在抢购、2.明日开抢)", example = "0")
	private int status;
	
	
	@Data
	@AllArgsConstructor
	@NoArgsConstructor
	public static class FlashSaleGoods implements Serializable {

		/**
		 * 
		 */
		private static final long serialVersionUID = -4359823913350101482L;

		/**
		 * 商品ID
		 */
		@JsonProperty("num_iid")
		@ApiModelProperty(value = "商品ID", example = "")
		private Long numIid;
		
		/**
		 * 商品主图
		 */
		@JsonProperty("pict_url")
		@ApiModelProperty(value = "商品主图", example = "")
		private String pictUrl;
		
		/**
		 * 商品原价
		 */
		@JsonProperty("reserve_price")
		@ApiModelProperty(value = "商品原价", example = "")
		private String reservePrice;
		
		/**
		 * 已抢购数量
		 */
		@JsonProperty("sold_num")
		@ApiModelProperty(value = "已抢购数量", example = "")
		private Long soldNum=0L;
		
		/**
		 * 商品标题
		 */
		@JsonProperty("title")
		@ApiModelProperty(value = "商品标题", example = "")
		private String title;
		
		/**
		 * 总库存
		 */
		@JsonProperty("total_amount")
		@ApiModelProperty(value = "总库存", example = "")
		private Long totalAmount;
		
		/**
		 * 淘抢购活动价
		 */
		@JsonProperty("zk_final_price")
		@ApiModelProperty(value = "抢购活动价", example = "1")
		private String zkFinalPrice;
		
		/**
		 * 商品抢购状态 0-未开抢、1-正在抢购、2-已售空
		 */
		@JsonProperty("goods_status")
		@ApiModelProperty(value = "抢购状态(0-未开抢、1-正在抢购、2-已抢光)", example = "0")
		private int goodsStatus;
	}
}
